﻿// ErkangShuttle.cpp: 定义应用程序的入口点。
//

#include "ErkangShuttle.h"
#include "Application.h"


int main()
{
	ErkangShuttle::Application& app = ErkangShuttle::Application::getApplicationInstance();
	try {
		app.init();
		app.setApplicationInfo("AppName", VK_MAKE_VERSION(1, 0, 0), "EngName", VK_MAKE_VERSION(1, 0, 0));
		std::vector<const char*> instanceExtensions{ "VK_KHR_surface", "VK_KHR_win32_surface" };
		app.setDefaultInstanceExtensions(instanceExtensions);
		app.createInstance("彩笔");
		auto pd = app["彩笔"].getAllAvailablePhysicalDevices();
		auto devexts = app["彩笔"][pd[0]].getAllAvailableDeviceExtensions();
	}
	catch (std::string& e)
	{
		std::cout << e << std::endl;
	}
	
	std::cout << "Hello ErkangShuttle!" << std::endl;
	return 0;
}
